home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-M68K / INIT.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  950b  |  38 lines

  1. #ifndef _M68K_INIT_H
  2. #define _M68K_INIT_H
  3.  
  4. #include <linux/config.h>
  5.  
  6. #ifndef CONFIG_KGDB
  7.  
  8. #define __init __attribute__ ((__section__ (".text.init")))
  9. #define __initdata __attribute__ ((__section__ (".data.init")))
  10. #define __initfunc(__arginit) \
  11.     __arginit __init; \
  12.     __arginit
  13. /* For assembly routines */
  14. #define __INIT        .section    ".text.init",#alloc,#execinstr
  15. #define __FINIT        .previous
  16. #define __INITDATA    .section    ".data.init",#alloc,#write
  17.  
  18. #define __cacheline_aligned __attribute__ \
  19.         ((__aligned__(16), __section__ (".data.cacheline_aligned")))
  20.  
  21. #else
  22.  
  23. /* gdb doesn't like it all if the code for one source file isn't together in
  24.  * the executable, so we must avoid the .init sections :-( */
  25.     
  26. #define __init
  27. #define __initdata
  28. #define __initfunc(__arginit) __arginit
  29. /* For assembly routines */
  30. #define __INIT
  31. #define __FINIT
  32. #define __INITDATA
  33. #define __cacheline_aligned __attribute__ ((__aligned__(16)))
  34.  
  35. #endif /* CONFIG_KGDB */
  36.  
  37. #endif
  38.